

/**
 * 密码登录验证
 */
export const passwordLoginValid = {
  usernameRules: [
      (v: string) => !!v || 'Name is required',
      (v: string) => (v && v.length <= 10) || '用户名不能查过10个字符',
  ],
  passwordRules: [
      (v: string) => !!v || 'password is required',
      (v: string) => (v && v.length > 4) || '密码长度不小于4',
  ]
}
